//
//  AccountCenterCell.m
//  JiaoX
//
//  Created by jiaoxiu－005 on 15/1/19.
//  Copyright (c) 2015年 北京娇羞科技有限公司. All rights reserved.
//

#import "AccountCenterCell.h"
#import "AccountCenterProdItemView.h"

@interface AccountCenterCell()
@property(nonatomic,strong)AccountCenterProdItemView *prodItemView;
@end

@implementation AccountCenterCell

+ (instancetype)cellWithTableView:(UITableView *)tableView{
    static NSString *ID = @"prodItem";
    AccountCenterCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (!cell) {
        cell = [[AccountCenterCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:ID];
    }
    return cell;
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        AccountCenterProdItemView *prodItemView =  [[AccountCenterProdItemView alloc]init];
        self.prodItemView = prodItemView;
        [self addSubview:prodItemView];
    }
    return self;
}

-(void)setCartInfos:(CartProdSub *)cartInfos{
    [self.prodItemView setCartInfos:cartInfos];
}

@end
